<html>
<head>
<title>Балачка</title>
 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="{$currentPage}application/templates/css/styles.css" type="text/css" />
<link rel="stylesheet" href="{$currentPage}application/templates/css/modalbox.css" type="text/css" />
<link rel="stylesheet" href="{$currentPage}application/templates/css/styles_global.css" type="text/css" />
<link href="{$currentPage}application/templates/css/style100.css" rel="stylesheet" media="all" type="text/css" />
<link rel="shortcut icon" href="{$currentPage}favicon.ico" type="image/x-icon" />

<script type="text/javascript">
var baseUrl	= '{$currentPage}';
</script>

<script type="text/javascript" src="{$currentPage}application/scripts/prototype.js"></script>
<script type="text/javascript" src="{$currentPage}application/scripts/scriptaculous/scriptaculous.js?load=builder,effects"></script>
<script type="text/javascript" src="{$currentPage}application/scripts/modalbox.js"></script>
<script type="text/javascript" src="{$currentPage}application/scripts/ajax.js"></script>
<script type="text/javascript" src="{$currentPage}application/scripts/functions.js"></script>
{if $loggedIn}
<script type="text/javascript" src="{$currentPage}application/scripts/yobane_menu.js"></script>
<script type="text/javascript" src="{$currentPage}application/scripts/tooltip.js"></script>
<script type="text/javascript" src="{$currentPage}application/scripts/mootools/mootools.js"></script>		
{/if}
</head>
<body {if !$loggedIn} onLoad="$('email').focus();" {else} onLoad="addwarning();"{/if}>
<div id="smoothbox_container"></div>
{if $loggedIn}
<table border="0" cellspacing="0" cellpadding="0" class="artsav_body" align="center">
  <tr>
    <td>
	<div id="artsav_topmenu">
	<div class="left"></div>
	<div class="center">
	
	<div id="artsav_topmenu_links">
	 <div class="item_container">
	 <a href='#' class='item'>Балачка</a>
	 <a href='#' class='item'>ВНЗ</a>
	 <a href='#' class='item'>Події</a>
	 <a href='#' class='item'>Спільноти</a>
	 
	  </div>

  	</div>
	
	<div id="artsav_topmenu_search">
	<div class="inside"><form action='{$currentPage}search' method='get'>
	  <input type="hidden" name="submit_search" id="submit_search" value="1">
    <input type='text' name="search_for" id="search_for" class='text'  value="Пошук друзів:..." onblur="if(this.value=='') this.value='Пошук друзів:...';" onfocus="if(this.value=='Пошук друзів:...') this.value='';" />
    <input type="image" src="{$currentPage}application/templates/images/topmenu_search.gif" class="go" />
    </form></div>
	</div>
	
	</div>
	<div class="right"></div>
	</div>
	
	
	<div id="artsav_logoarea">
	
	<div class="left">
	<h1><a href='{$currentPage}' title="Балачка">Балачка</a></h1>
	</div>
	<div class="right">
	  
   
  
  <div class="username"> <a href='{$currentPage}user/profile/{$userId}'>{$userName}</a> <sup><a href='{$currentPage}user/logout'>Вийти</a></sup>  </div>

	</div>
	</div>
	<div>
</div>
	
	
	<div id="artsav_usermenu">
<div class="left">
<div class="right">

<table cellpadding='0' cellspacing='0' style='width: 100%;' align='center'>
  <tr>
  <td class='menu_user' valign="middle">
  
    
        <div class='menu_item'>
      <div style='float: left; background: none;'>
        <a href='{$currentPage}user/profile/{$userId}' class='menu_item' onMouseOver="showMenu('menu_dropdown_profile');">
          <img src='{$currentPage}application/templates/images/icons/profile16.gif' border='0' class='menu_icon' />
          Моя сторінка        </a>
        <div>
        <div class='menu_dropdown' id='menu_dropdown_profile' style='display: none;'>
          <img src="{$currentPage}application/templates/images/trans.gif" /><div class="menu_dropdown_back">
            <div class='menu_item_dropdown'><a href='{$currentPage}edit/general' class='menu_item'><img src='{$currentPage}application/templates/images/icons/profile_edit16.gif' border='0' class='menu_icon2'>Редагувати мою сторінку</a></div>
              <div class='menu_item_dropdown'><a href='{$currentPage}edit/picture' class='menu_item'><img src='{$currentPage}application/templates/images/icons/profile_editphoto16.gif' border='0' class='menu_icon2'>Налаштування аватару</a></div>
                          </div>
          </div>
        </div>
      </div>
      <div class='menu_sep'></div>
    </div>

        
              <div class='menu_item'>
        <div style='float: left; background: none;'>
          <a href='{$currentPage}messages' class='menu_item' onMouseOver="showMenu('menu_dropdown_messages');" ><img src='{$currentPage}application/templates/images/icons/message_inbox16.gif' border='0' class='menu_icon' />Мої Повідомлення {$count_new_msg}</a>
          <div>
            <div class='menu_dropdown' id='menu_dropdown_messages' style='display: none;'>
              <img src="{$currentPage}application/templates/images/trans.gif" /><div class="menu_dropdown_back">
                <div class='menu_item_dropdown'><a href="{$currentPage}messages/compose" class='menu_item'><img src='{$currentPage}application/templates/images/icons/message_new16.gif' border='0' class='menu_icon2'>Написати повідомлення</a></div>
                <div class='menu_item_dropdown'><a href='{$currentPage}messages/inbox' class='menu_item'><img src='{$currentPage}application/templates/images/icons/message_inbox16.gif' border='0' class='menu_icon2'>Отримані повідомлення</a></div>
                <div class='menu_item_dropdown'><a href='{$currentPage}messages/sent' class='menu_item'><img src='{$currentPage}application/templates/images/icons/message_outbox16.gif' border='0' class='menu_icon2'>Надіслані повідомлення</a></div>
              </div>
            </div>
          </div>
        </div>
        <div class='menu_sep'></div>
      </div>
        
              <div class='menu_item'>
        <div style='float: left; background: none;'>
          <a href='{$currentPage}friends'  class='menu_item' onMouseOver="showMenu('menu_dropdown_friends');"><img src='{$currentPage}application/templates/images/icons/friends16.gif' border='0' class='menu_icon' />Мої Друзі {$count_friends_request}</a>
          <div>
            <div class='menu_dropdown' id='menu_dropdown_friends' style='display: none;'>
              <img src="{$currentPage}application/templates/images/trans.gif" /><div class="menu_dropdown_back">
                <div class='menu_item_dropdown'><a href='{$currentPage}friends/view/{$userId}' class='menu_item'><img src='{$currentPage}application/templates/images/icons/friends16.gif' border='0' class='menu_icon2'>Переглянути моїх друзів</a></div>
                <div class='menu_item_dropdown'><a href='{$currentPage}friends/online/{$userId}' class='menu_item'><img src='{$currentPage}application/templates/images/icons/friends_online.gif' border='0' class='menu_icon2'>Друзі онлайн</a></div>
                <div class='menu_item_dropdown'><a href='{$currentPage}friends/phonebook' class='menu_item'><img src='{$currentPage}application/templates/images/icons/phonebook16.gif' border='0' class='menu_icon2'>Телефонна книга</a></div>
                <div class='menu_item_dropdown'><a href='{$currentPage}friends/newest' class='menu_item'><img src='{$currentPage}application/templates/images/icons/friends16.gif' border='0' class='menu_icon2'>Нещодавно додані</a></div>
                <div class='menu_item_dropdown'><a href='{$currentPage}friends/request' class='menu_item'><img src='{$currentPage}application/templates/images/icons/friends_incoming16.gif' border='0' class='menu_icon2'>Вхідні запити на дружбу {$count_friends_request}</a></div>
                <div class='menu_item_dropdown'><a href='{$currentPage}friends/outrequest' class='menu_item'><img src='{$currentPage}application/templates/images/icons/friends_outgoing16.gif' border='0' class='menu_icon2'>Вихідні запити на дружбу {$count_out_request}</a></div>
              </div>
            </div>
          </div>
        </div>
        <div class='menu_sep'></div>
      </div>
        
        <div class='menu_item'>
      <div style='float: left; background: none;'>
        <a href='{$currentPage}settings' class='menu_item'><img src='{$currentPage}application/templates/images/icons/settings16.gif' border='0' class='menu_icon' />Мої Налаштування</a>
        </div>
      </div>
    </div>
    <div class='menu_sep'></div>
    

  </td>
  </tr>
  </table>



</div>
</div>
</div>
	
	
 

{else}
<table border="0" cellspacing="0" cellpadding="0" class="artsav_body" align="center">
  <tr>
    <td>
	<div id="artsav_topmenu">
	<div class="left"></div>
	<div class="center">
	
	<div id="artsav_topmenu_links">
	 <div class="item_container">
	 <a href='{$currentPage}welcome' class='item'>
        Балачка      </a>
	  </div>

	  
	  
	      
  	</div>
	

	
	</div>
	<div class="right"></div>
	</div>
	
	
	<div id="artsav_logoarea">
	
	<div class="left">
	<h1><a href="{$currentPage}welcome">Балачка</a></h1>
	</div>
	
<div class="right">
<div class='signupreg'><a href='{$currentPage}user/register'>Реєстрація</a></div>
 <div class='signupreg'><a href='{$currentPage}user/login'>Вхід</a></div>
</div>
	
	</div>
	
	
	<div>


</div>
{/if}
